package mc.contents.web.common;

import javax.servlet.AsyncContext;
import java.util.List;

/**
 * Created by Administrator on 14-12-8.
 */
public class CommonContext {
    private AsyncContext context;
    private boolean timeout;
    private boolean error;
    private List<CrawResult> crawResults;
    private CrawRequest crawRequest;

    public boolean isError() {
        return error;
    }

    public void setError( boolean error ) {
        this.error = error;
    }

    public AsyncContext getContext() {
        return context;
    }

    public void setContext( AsyncContext context ) {
        this.context = context;
    }

    public boolean isTimeout() {
        return timeout;
    }

    public void setTimeout( boolean timeout ) {
        this.timeout = timeout;
    }

    public List<CrawResult> getCrawResults() {
        return crawResults;
    }

    public void setCrawResults( List<CrawResult> crawResults ) {
        this.crawResults = crawResults;
    }

    public CrawRequest getCrawRequest() {
        return crawRequest;
    }

    public void setCrawRequest( CrawRequest crawRequest ) {
        this.crawRequest = crawRequest;
    }
}
